package cn.rkylin.oms.warehouseDocking.service.qimen;

import cn.rkylin.oms.warehouseDocking.dao.qimen.IGoodsSynchronizeDAO;
import cn.rkylin.oms.warehouseDocking.dao.qimen.IOtherStockoutCreateDAO;
import cn.rkylin.oms.warehouseDocking.vo.qimen.GoodsSynchronize;
import cn.rkylin.oms.warehouseDocking.vo.qimen.OtherStockoutCreate;
import cn.rkylin.oms.warehouseDocking.vo.qimen.OtherStockoutSkuCreate;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 奇门获取需要创建的其他发货单信息服务层
 * 
 * @author fengwang
 * @created 2017年10月17日
 */
@Service("otherStockoutCreateService")
public class OtherStockoutCreateService {

    @Autowired
    IOtherStockoutCreateDAO iOtherStockoutCreateDAO;

    /**
     * 获取需要创建的其他发货单信息
     * 
     * @param reqMap
     * @return
     * @throws Exception
     */
    public List<OtherStockoutCreate> selectInfoOtherStockoutByPrjIdAndStorId(Map<String, Object> reqMap) throws Exception {
        return iOtherStockoutCreateDAO.selectInfoOtherStockoutByPrjIdAndStorId(reqMap);
    }

    /**
     * 获取需要创建的其他发货单商品信息
     *
     * @param reqMap
     * @return
     * @throws Exception
     */
    public List<OtherStockoutSkuCreate> selectInfoOtherStockoutSkuByStockoutId(Map<String, Object> reqMap) throws Exception {
        return iOtherStockoutCreateDAO.selectInfoOtherStockoutSkuByStockoutId(reqMap);
    }
}
